package com.camel.record.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.camel.core.entity.BasePaginationEntity;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author baily
 * @since 2022-11-10
 */
@TableName(value = "cdr_record")
public class CdrRecord extends BasePaginationEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String msg;
    private Date createdAt;

    public CdrRecord() {
    }

    public CdrRecord(String msg) {
        this.msg = msg;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Override
    public String toString() {
        return "CdrRecord{" +
                ", id=" + id +
                ", msg=" + msg +
                ", createdAt=" + createdAt +
                "}";
    }
}
